mui.init();
var demo = new Vue({
	el: '#main',
	data: {
		lists: []
	},
	ready: function() {
		var cancelUrl = getUrl("64getlist");
		var headerJson = getHeader();
		var datastart = "account=" + readData(localStorage.phone) + "&guideId=" + readData(localStorage.guideId) + "&status=cancel";
		this.$http({
			url: cancelUrl,
			method: 'POST',
			headers: headerJson,
			data: datastart			
		}).then(function(respons) {
			if (respons.data.code == "0") {
				var serviceList =respons.data.obj.list;
				for (var i = 0; i < serviceList.length; i++) {
					if (serviceList[i].serviceId == "1") {
						serviceList[i].title = "上门试衣";
					} else {
						serviceList[i].title = "定制改衣";
					}
				}
				this.$set('lists',serviceList)
			} else {
				mui.alert("网络链接异常，请稍后重试" + data.code)
			}
		},function(respons){
			console.log('网络链接异常')
		})
	}
});
